@layout("/common/_form.html",{js:["/assets/plan/plan_edit.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">生产制造计划</span>
</div>
<div class="alert alert-success" role="alert">生产制造计划注意：<span id="statusTip"></span></div>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding-top: 40px;">
            <div class="layui-form-item layui-form-text" style="margin: 0px">
                <div id="step_demo" class="step-body">
                    生产进度:
                    <div class="step-header" id="step_header" style="width:80%;overflow: hidden;">
                        <ul>
                            <li id="step0"><span class="step-name">投放阶段</span></li>
                            <li id="step1"><span class="step-name">生长阶段</span></li>
                            <li id="step2"><span class="step-name">收成阶段</span></li>
                            <li id="step3"><span class="step-name">完成阶段</span></li>
                        </ul>
                    </div>
                </div>
            </div>
            <form class="layui-form" id="planForm" lay-filter="planForm">
                <div class="layui-fluid" id="planContentForm" style="padding-bottom: 75px;">
                    <div class="layui-card">
                        <div class="layui-card-header"></div>
                        <div class="layui-card-body">
                            <div class="layui-form-item layui-row" style="margin-top: 0px">

                                <div id="basicForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">基本信息</span>
                                            </div>
                                        </div>
                                    </div>
                                    <input name="planId" type="hidden"/>
                                    <input name="status" type="hidden"/>
                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">标题</label>
                                        <div class="layui-input-block">
                                            <input id="title" name="title" placeholder="请输入标题" type="text"
                                                   class="layui-input"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-inline layui-col-md12">
                                    <label class="layui-form-label">备注</label>
                                    <div class="layui-input-block">
                                        <input id="remark" name="remark" placeholder="请输入备注" type="text"
                                               class="layui-input"/>
                                    </div>
                                </div>


                                <div id="farmForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">养殖场</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">养殖场</label>
                                        <div class="layui-input-block">
                                            <input id="farmId" name="farmId" type="hidden" class="layui-input"/>
                                            <select name="farmId" id="farmSelect" lay-filter="farmSelect">

                                            </select>

                                        </div>
                                    </div>
                                    <input id="farmName" name="farmName" type="hidden" class="layui-input"/>
                                </div>

                                <div id="poodForm">
                                    <!--  饲养池 -->
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">饲养池</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">饲养池</label>
                                        <div class="layui-input-block">
                                            <input id="poodId" name="poodId" type="hidden" class="layui-input"/>
                                            <select name="poodId" id="poodSelect" lay-filter="poodSelect">

                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">饲养池PH</label>
                                        <div class="layui-input-block">
                                            <input id="poodPH" name="poodPH" placeholder="输入饲养池PH"
                                                   type="number" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">饲养池盐度</label>
                                        <div class="layui-input-block">
                                            <input id="poodSalt" name="poodSalt" placeholder="输入饲养池盐度"
                                                   type="number" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">饲养池温度</label>
                                        <div class="layui-input-block">
                                            <input id="poodTemperature" name="poodTemperature" placeholder="输入饲养池温度"
                                                   type="number" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">亚硝酸盐</label>
                                        <div class="layui-input-block">
                                            <input id="poodNitrate" name="poodNitrate" placeholder="亚硝酸盐"
                                                   type="number" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">氨氮</label>
                                        <div class="layui-input-block">
                                            <input id="poodAmmonia" name="poodAmmonia" placeholder="氨氮"
                                                   type="number" class="layui-input"/>
                                        </div>
                                    </div>
                                </div>

                                <!--            原料                    -->

                                <div id="materielForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">投放规格</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">投放规格</label>
                                        <div class="layui-input-block">
                                            <select name="materielIds" xm-select="materielSelect">
                                                <option value="">请选择投放规格</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div id="materielsItemList"></div>
                                </div>
                                <!--            产品                    -->

                                <div id="productForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">预定产品</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">预定产品</label>
                                        <span id="product_tip" hidden></span>
                                        <div class="layui-input-block">
                                            <select name="productIds" xm-select="productSelect">
                                                <option value="">请选择预定产品</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div id="productItemList"></div>

                                <!--    人员      -->
                                <div id="workerForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">人员</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">执行人员</label>
                                        <div class="layui-input-block">
                                            <input id="worker" name="worker" type="hidden" class="layui-input"/>
                                            <select name="worker" id="workerSelect" lay-filter="workerSelect">

                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">审核人员</label>
                                        <div class="layui-input-block">
                                            <input id="reviewWorker" name="reviewWorker" type="hidden"
                                                   class="layui-input"/>
                                            <select name="reviewWorker" id="reviewWorkerSelect"
                                                    lay-filter="reviewWorkerSelect">

                                            </select>

                                        </div>
                                    </div>
                                </div>


                                <div class="layui-form toolbar">
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <span class="layui-badge layui-bg-green">生产计划相关时间</span>
                                        </div>
                                    </div>
                                </div>

                                <div id="releaseTimeForm">
                                    <div class="layui-inline layui-col-md3">
                                        <label class="layui-form-label">投放开始时间</label>
                                        <div class="layui-input-block">
                                            <input id="releaseStartTime" name="releaseStartTime" placeholder="投放开始时间"
                                                   type="text" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md3">
                                        <label class="layui-form-label">投放结束时间</label>
                                        <div class="layui-input-block">
                                            <input id="releaseEndTime" name="releaseEndTime" placeholder="投放结束时间"
                                                   type="text" class="layui-input"/>
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-inline layui-col-md3" id="harvestTimeForm">
                                    <label class="layui-form-label">收成时间</label>
                                    <div class="layui-input-block">
                                        <input id="harvestTime" name="harvestTime" placeholder="收成时间"
                                               type="text" class="layui-input"/>
                                    </div>
                                </div>
                                <div class="layui-inline layui-col-md3" id="inspectionTimeForm">
                                    <label class="layui-form-label">完成时间</label>
                                    <div class="layui-input-block">
                                        <input id="inspectionTime" name="inspectionTime" placeholder="请输入完成时间"
                                               type="text" class="layui-input"/>
                                    </div>
                                </div>

                                <!--            每日任务                    -->

                                <div id="dayTaskForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-red">每日任务</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="dayBtnA" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加喂养动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="dayTaskMaterielItemList"></div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="dayBtnB" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加其他动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="dayTaskOtherItemList"></div>
                                </div>
                                <!--            每周任务                    -->

                                <div id="weekTaskForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-red">每周任务</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="weekBtnA" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加喂养动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="weekTaskMaterielItemList"></div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="weekBtnB" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加其他动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="weekTaskOtherItemList"></div>
                                </div>

                                <div id="mouthTaskForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-red">每月任务</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="mouthBtnA" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加喂养动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="mouthTaskMaterielItemList"></div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <button id="mouthBtnB" class="layui-btn layui-btn-primary layui-btn-sm" type="button">
                                                <i class="layui-icon">&#xe654;</i>添加其他动作
                                            </button>
                                        </div>
                                    </div>
                                    <div id="mouthTaskOtherItemList"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form toolbar" style="padding-bottom: 20px">
                        <button class="layui-btn layui-btn-lg layui-btn-danger layui-btn-radius" lay-filter="btnSubmit" lay-submit id="saveButton" type="button">&emsp;保存资料&emsp;
                        </button>
                    </div>
                </div>


                <div class="text-center">
                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit id="comfireButton" type="button">&emsp;提交&emsp;
                    </button>
                    <button type="reset" class="layui-btn layui-btn-primary" id="backupPage">&emsp;返回&emsp;</button>
                </div>


            </form>
        </div>
    </div>
</div>

@}